<%@ page contentType="text/html; charset=UTF-8" %>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<html >
<head>
<title>修改用户信息</title>
<style type="text/css">
<!--
.STYLE1 {
	font-size: 24px;
	font-weight: bold;
}
-->
</style>
<script language="javascript">
 function ClickOk()
 {
   var t=document.Edit;
      if(t.nick.value==null) return(false);
      if(t.pwd.value==null) return(false);
      var   result=new   Object(); 
        result.nick    =t.nick.value; 
        result.pwd     =t.pwd.value; 
        result.email     =t.email.value; 
        window.returnValue   =   result; 
        window.close(); 
}  
 function getvalue()
 {   	alert(window.NICK);
 		alert("注册邮箱或密码不能为空，修改失败！");
 }
</script>
</head>

<% 
	int  ID=Integer.parseInt(request.getParameter("id")); 
	String Name=request.getParameter("name");
	String Nick=request.getParameter("nick");
	String Pwd=request.getParameter("pwd");
	String Email=request.getParameter("email");
%>
<body>
  <form name="Edit" id="Edit">
<table width="300" height="250" border="0" align="center" cellpadding="0" cellspacing="2">
    <tr>
      <td height="14" colspan="2" align="right"><div align="center" class="STYLE1">编辑用户信息</div></td>
    </tr>
    <tr>
      <td width="77" height="14" align="right"><div align="center"><strong>用户名</strong></div></td>
      <td width="217" align="right"><div align="left">&nbsp;&nbsp;&nbsp;&nbsp;<%=Name%>
      </div></td>
    </tr>
    <tr>
      <td height="14" align="right"><div align="center"><strong>昵称</strong></div></td>
      <td align="right"><div align="center">
          <input name="nick" type="text"  value="getvalue()" size="25" />
      </div></td>
    </tr>
    <tr>
      <td height="14" align="right"><div align="center"><strong>密码</strong></div></td>
      <td align="right"><div align="center">
        <input name="pwd" type="text"  value="<%=Pwd%>" size="25" />
      </div></td>
    </tr>
    <tr>
      <td height="14" align="right"><div align="center"><strong>Email</strong></div></td>
      <td align="right"><div align="center">
        <input name="email" type="text"  value="<%=Email%>" size="25" />
      </div></td>
    </tr>
    <tr>
      <td height="30" colspan="2" align="right"><div align="center">
        <input " type="button" name="bntOk" value="确认"  onClick="ClickOk()"/> 
         <input name="" type="reset" value="重置">
      </div></td>
    </tr>
</table>
  </form>
</body>
</html>